
close all
clear all
clc

x=linspace(-1,1,100);
y=x.^2;

fig=figure;
%set('Color','w'); % This has problems in Octave
set(fig,'Name', 'Sample Graph2');
set(fig,'NumberTitle', 'off');

h=plot(x,y,'-b','LineWidth',2);
h2=get(h,'Parent');
set(h2,'FontSize',14,'LineWidth',2);
xlabel('x');
ylabel('y','Rotation',0);
title('Better Plot');

xm=[-1:0.5:+1];
xt={};
for m=1 : length(xm)
    xt{m}=num2str(xm(m),'%3.2f');
end
set(h2,'Xtick',xm,'XTickLabel',xt);

ym=[0:0.1:+1];
yt={};
for m=1 : length(ym)
    yt{m}=num2str(ym(m),'%2.1f');
end
set(h2,'Ytick',ym,'YTickLabel',yt);

% Label Minimum
text(-0.76,0.6,'Cool Curve','Color','b','HorizontalAlignment','left');
text(0,0.03,'min','Color','r','HorizontalAlignment','center');


